import server from './server';

export const phoneBind = (data) => { //绑定手机
    return server.post('/user/set_phone', data)
}

export const emailBind = (data) => { //绑定邮箱
    return server.post('/user/set_email', data)
}


export const resetPassword = (data) => { //修改登录密码
    return server.post('/user/modify_login_pwd', data)
}


export const createPaymentPassword = (data) => { //创建资金密码
    return server.post('/user/set_pay_pwd', data)
}

export const resetPaymentPassword = (data) => { //修改资金密码
    return server.post('/user/reset_pay_pwd', data)
}

export const createGoogleSecret = (data) => { //创建谷歌验证码
    return server.get('/google/create', {
        params: data
    })
}


export const authenticatorBind = (data) => { //绑定谷歌验证码
    return server.post('/google/bind', data)
}

export const googleVerifyStart = (data) => { //开启或关闭谷歌验证
    return server.post('/google/update_status', data)
}